package org.lyl.taobao.api.entity;


import lombok.Data;

import java.io.Serializable;

/**
 * @Author: Re
 * @Date: 2021/3/29 12:51
 */
@Data
public class Commodity {
    private int commodityId;
    private String commodityName;
    private String commodityKind;
    private float commodityPrice;
    private Integer commodityUserId;

    public Commodity() {
    }

    public Commodity(String commodityName, String commodityKind, float commodityPrice) {
        this.commodityName = commodityName;
        this.commodityKind = commodityKind;
        this.commodityPrice = commodityPrice;
    }

    public Commodity(String commodityName, String commodityKind, float commodityPrice, Integer commodityUserId) {
        this.commodityName = commodityName;
        this.commodityKind = commodityKind;
        this.commodityPrice = commodityPrice;
        this.commodityUserId = commodityUserId;
    }

    public Commodity(int commodityId, String commodityName, String commodityKind, float commodityPrice) {
        this.commodityId = commodityId;
        this.commodityName = commodityName;
        this.commodityKind = commodityKind;
        this.commodityPrice = commodityPrice;
    }

    public Commodity(int commodityId, String commodityName, String commodityKind, float commodityPrice, Integer commodityUserId) {
        this.commodityId = commodityId;
        this.commodityName = commodityName;
        this.commodityKind = commodityKind;
        this.commodityPrice = commodityPrice;
        this.commodityUserId = commodityUserId;
    }

    @Override
    public String toString() {
        return "商品名为：" + commodityName  +
                ",商品分类：" + commodityKind +
                ",商品价格：" + commodityPrice ;
    }
}
